package org.example.service;

import java.util.function.Function;

public class OaService implements Function<OaService.Request, OaService.Response> {


    @Override
    public OaService.Response apply(OaService.Request request) {
        System.err.printf("%s请假%s天假期", request.who, request.day);
        return new OaService.Response(request.day);
    }

    public record Request(String who, int day) {

    }

    public record Response(int days) {

    }
}
